#include <iostream>
#include <string>
#include <stdlib.h>

using namespace std;

// FIXME: 类、结构体的名字最好是大小，例如`Student`
struct student { 
	string name;
	int score;
};
struct teacher {
	string name;
	student five[5];
};
void information(teacher three[], int len) {
	for (int i = 0; i < len; i++) {
		string num = "12345";
		three[i].name = "老师";
		three[i].name += num[i];
		for (int j = 0; j < 5; j++) {
			three[i].five[j].name = "学生";
			three[i].five[j].name += num[j];
			three[i].five[j].score = (rand() % 101) + 0;
		}
	}
}
void printall(teacher s[], int len) {
	for (int i = 0; i < len; i++) {
		cout << "老师姓名:" << s[i].name <<  endl;
		for (int j = 0; j < 5; j++) {
			cout << "学生姓名  " << s[i].five[j].name << "  学生成绩 " << s[i].five[j].score << endl;
		}
	}
}
int main() {
	teacher three[3];
	int len = sizeof(three) / sizeof(three[0]);
	information(three, len);
	printall(three, len);
	return 0;
}
